package com.example.mybatis.mapper;

import com.example.mybatis.pojo.Account;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * ClassName:AccountMapper
 * Package:com.example.mybatis.mapper
 * Description:
 *
 * @Author:ZhangXin
 * @Create:2023/5/12-9:08
 * @Version:v1.0
 */

public interface AccountMapper {

    //新增账户
    int insert(Account account);

    //根据账号删除账户
    int deleteByActno(String actno);

    //修改账户
    int update(Account account);

    //根据账号查询账户
    Account selectByActno(String actno);

    //查询所有帐户
    List<Account> selectAll();

}
